package tests;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.util.Vector;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadPoolExecutor;

public class StressTest {


	public static void main(String[] args) throws FileNotFoundException {
		
		String host = "localhost";
		String port = "61613";


		ExecutorService exec = Executors.newFixedThreadPool(100);
		for (int i=0;i<100;i++){
			StressThread st = new StressThread(host, port,i);
			
			exec.execute(st);
			try {
				Thread.sleep(200);
			} catch (InterruptedException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}

		
		
	}

}
